<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page import="java.util.*"%>
<%@ include file="index.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="favicon.ico">
<link rel="Shortcut Icon" href="favicon.ico" />
<!--[if lt IE 9]>
<script type="text/javascript" src="lib/html5.js"></script>
<script type="text/javascript" src="lib/respond.min.js"></script>
<![endif]-->
<link rel="stylesheet" type="text/css"
	href="static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="static/h-ui.admin/css/style.css" />
<!--[if IE 6]>
<script type="text/javascript" src="http://lib.h-ui.net/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
<!--/meta 作为公共模版分离出去-->

<!-- <title>新增文章 - 资讯管理 - H-ui.admin v3.0</title>
<meta name="keywords" content="耶回收">
<meta name="description" content="耶回收"> -->
</head>
<body>
	<section class="Hui-article-box">
	<form class="form form-horizontal" id="form-article-add" action="<%=basePath%>perupdate" method="post">
		<input name="h_uid" type="hidden" value="${HUser.h_uid }">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span
				class="c-red">*</span>真实姓名：</label>
			<div class="formControls col-xs-8 col-sm-4">
				<input type="text" class="input-text" value="${HUser.nickname }"
					id="nickname" name="nickname">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span
				class="c-red">*</span>用户名：</label>
			<div class="formControls col-xs-8 col-sm-4">
				<input type="text" class="input-text" value="${HUser.uname }"
					id="uname" name="uname">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span
				class="c-red">*</span>密码：</label>
			<div class="formControls col-xs-8 col-sm-4">
				<input type="text" class="input-text" value="${HUser.upassword }"
					id="upassword" name="upassword">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span
				class="c-red">*</span>手机：</label>
			<div class="formControls col-xs-8 col-sm-4">
				<input type="text" class="input-text" value="${HUser.uphone }"
					id="uphone" name="uphone">
			</div>
		</div>

		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2">性别：</label>
			<div class="formControls col-xs-8 col-sm-4">
				<c:if test="${HUser.usex==1}">
					<input type="radio" class="usex" name="usex" value="1"
						checked="checked">男
							<input type="radio" class="usex" name="usex" value="0">女
							</c:if>
				<c:if test="${HUser.usex==0}">
					<input type="radio" class="usex" name="usex" value="1">男
							<input type="radio" class="usex" name="usex" value="0"
						checked="checked">女
							</c:if>
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-2"><span
				class="c-red">*</span>权限：</label>
				<% 
				ArrayList<Integer> list = new ArrayList<Integer>();
				list=(ArrayList<Integer>) session.getAttribute("list"); %>
			<div class="formControls col-xs-8 col-sm-6">
				<input type="checkbox" value="1001" name="perid" <%=list.contains(1001)?"checked=checked":""%>>商品管理<br>
				<input type="checkbox" value="1002" name="perid" <%=list.contains(1002)?"checked=checked":""%>>查询商品<br>
				<input type="checkbox" value="1003" name="perid" <%=list.contains(1003)?"checked=checked":""%>>操作订单<br>
				<input type="checkbox" value="1004" name="perid" <%=list.contains(1004)?"checked=checked":""%>>查询订单<br>
				<input type="checkbox" value="1005" name="perid" <%=list.contains(1005)?"checked=checked":""%>>管理用户<br>
				<input type="checkbox" value="1006" name="perid" <%=list.contains(1006)?"checked=checked":""%>>查询用户<br>
				<input type="checkbox" value="1007" name="perid" <%=list.contains(1007)?"checked=checked":""%>>操作管理员
			</div>
		</div>
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
				<button class="btn btn-secondary radius"
					type="submit">
					<i class="Hui-iconfont">&#xe632;</i> 保存修改
				</button>
			</div>
		</div>
	</form>
	</section>
</body>
</html>